package com.fhz.module_mine;

import androidx.annotation.NonNull;
import androidx.lifecycle.ViewModel;
import androidx.lifecycle.ViewModelProvider;

/**
 * 时间:2021/11/16
 *
 * @author msfeng
 * 简述: TODO
 */
public class MineViewModelFactory implements ViewModelProvider.Factory {
    @NonNull
    @Override
    public <T extends ViewModel> T create(@NonNull Class<T> modelClass) {
        return (T) new MineViewModel(new MineRepository(new MineModel()));
    }
}
